# Python __dir__()用法：列出对象的所有属性（方法）名
class CLanguage:
    def __init__(self):
        self.name = "C语言中文网"
        self.add = "http://c.biancheng.net"
    
    def say():
        pass

clangs = CLanguage()
print(dir(clangs))
print()
print(sorted(clangs.__dir__()))

